package com.baishancloud.log.live.tengine

import java.io.Serializable
import scala.beans.BeanProperty

/**
 *
 * @author ziqiang.wang 
 * @date 2021/11/25 20:00
 */
class CalculateTengine extends Serializable

//日志对象
case class TengineLog(time_at_1min: String, domain: String, country: String, province: String, isp: String, log_type: Int) extends Serializable {
  def getKey: TengineLogKey = {
    TengineLogKey(time_at_1min, domain, country, province, isp, log_type)
  }
}

case class TengineLogKey(time_at_1min: String, domain: String, country: String, province: String, isp: String, log_type: Int) extends Serializable

//输出结果，最终转化为json字符串
case class TengineResult(@BeanProperty time_at_1min: String, @BeanProperty domain: String, @BeanProperty country: String, @BeanProperty province: String, @BeanProperty isp: String, @BeanProperty log_type: Int, @BeanProperty uv: Long) extends Serializable
